<?php


namespace app\user\model;


use app\index\model\Base;//default 不变，不要改

class UserAddress extends Base
{
    protected $pk='ua_id';
    protected $table = 'user_address';
    public function user()
    {
        return $this->belongsTo('User','u_id','ua_id');
    }
    public function serverOrder()
    {
        return $this->belongsTo('ServerOrder','u_id','ua_id');
    }
}